*{
	padding: 0;
	margin: 0;
}
ul{
	list-style: none;
}

#wrap{
	width: 100vw;
	height: 100vh;
	background: url(../images/00.jpg) no-repeat center;
    background-size: cover;
	display: flex;
	justify-content: center;
	align-items: center;
}

#wrap ul{
	width: 80vw;
	height: 80vh;
	/*
		把ul变成弹性盒模型，让子元素在水平上是两端对齐，均分剩余空间；在垂直方向上是居中对齐，当子元素的高度变化时它也是居中对齐 
	 */
	display: flex;
	justify-content: space-between;
	align-items: center;	/* y轴方向上居中对齐 */
}
#wrap li{
	width: 16%;
	height: 100%;
	background: #333;
	border-radius: 20px;
	overflow: hidden;
	cursor: pointer;

	/* 
		所有的li先走宽，能看见的就是点击的元素宽度有变化，兄弟节点宽度变化看不见，因为它的高度为0
		宽度走完后走高度，走高度的时候只有兄弟会走，点击的元素不会走，因为没让它变高度
	 */
	transition: width .5s linear, height .5s linear .5s;
}
#wrap li .inner{
	width: 100%;
	height: 100%;
	position: relative;

	transition: .5s linear;
}
#wrap .init .inner{
	transform: translateY(100%);
}
#wrap li:nth-child(1) .inner{
	transition-delay: .1s;	/* 延迟 */
}
#wrap li:nth-child(2) .inner{
	transition-delay: .2s;
}
#wrap li:nth-child(3) .inner{
	transition-delay: .3s;
}
#wrap li:nth-child(4) .inner{
	transition-delay: .4s;
}
#wrap li:nth-child(5) .inner{
	transition-delay: .5s;
}
#wrap li:nth-child(6) .inner{
	transition-delay: .6s;
}

#wrap li .bg{
	height: 100%;
	background-size: cover;
	background-position: center;

	opacity: .5;
	transition: .2s linear;
}
#wrap li:nth-child(1) .bg{
	background-image: url(../images/1.jpg);
}
#wrap li:nth-child(2) .bg{
	background-image: url(../images/2.jpg);
}
#wrap li:nth-child(3) .bg{
	background-image: url(../images/3.jpg);
}
#wrap li:nth-child(4) .bg{
	background-image: url(../images/4.jpg);
}
#wrap li:nth-child(5) .bg{
	background-image: url(../images/5.jpg);
}
#wrap li:nth-child(6) .bg{
	background-image: url(../images/6.jpg);
}
#wrap li:hover .bg{
	opacity: 1;
} 

#wrap li h1{
	font-size: 16px;
	color: #fff;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);

	/* 过渡透明度，过渡时间为0.2秒，过渡形式为匀速，延迟1秒钟再走，因为前面宽走.5s高走.5s两个走完需要1s */
	transition: opacity .2s linear 1s;
}
#wrap li:hover h1{
	font-size: 24px;
	width: auto;
}

#activeWrap li h1{
	opacity: 0;
	transition: opacity .2s linear;
}
#activeWrap li.active{
	width: 100%;
}
#activeWrap li:not(.active){	/* 选择到没有active class的li标签 */
	width: 0;
	height: 0;
}

#activeWrap li{
	transition: height .5s linear, width .5s linear .5s;
}

#wrap li .direction{
	width: 100%;
	height: 30px;
	display: flex;
	justify-content: space-between;
	box-sizing: border-box;
	padding: 0 30px;

	position: absolute;
	top: 50px;
	opacity: 0;
}
#wrap li .direction .header{
	color: #fff;
	font-size: 24px;
	width: 70vw;
}
#wrap li .direction .close{
	width: 30px;
	height: 30px;
	cursor: pointer;
	position: relative;
}
#wrap li .direction .close:before,#wrap li .direction .close:after{
	content: '';
	width: 30px;
	height: 4px;
	position: absolute;
	top: 50%;
	margin-top: -2px;
	background: #fff;
}
#wrap li .direction .close:before{
	transform: rotate(45deg);
}
#wrap li .direction .close:after{
	transform: rotate(-45deg);
}

#activeWrap li .direction{
	opacity: 1;
	transition: .5s linear 1s;
}
#activeWrap li .direction .close{
	transform: rotate(360deg);
	transition: .5s linear 1s;
}
.customerService a img {
    width: 50px;
    height: 50px;
    position: absolute;
    right: 0;
    top: 0;
    margin: 20px;
    cursor: pointer;
}
.f-return a img {
    position: absolute;
    left: 0;
    top: 0;
    margin: 10px;
    width: 50px;
    height: 50px;
}